import Datastore from 'nedb-promises';
const { app } = require('electron')
const userDataPath = app.getPath('userData')
import path from 'path' 

const db = {
    session: Datastore.create({
        filename: path.join(userDataPath, 'data.db'),
        autoload: true
    })
};

export default db

